package com.example.api.service.impl;

import com.example.api.dao.RoleDao;
import com.example.api.model.entity.Role;
import com.example.api.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    
    @Resource
    private RoleDao roleDao;
    
    @Override
    public List<Role> findAll() {
        return roleDao.findAll();
    }
    
}